<?Php
	require_once('Model/getconfig.php');						
?>
<?php
	$user=$_SESSION["user"];
	$name=$_SESSION["name"];	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}



-->
</style>
<script  language="JavaScript" src="businesslist.js"></script>
<link href="css/adways.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
	<script>
		!window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>');
	</script>
	<script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.4.css" media="screen" />
 	<link rel="stylesheet" href="style.css" />
	<script type="text/javascript">
		$(document).ready(function() {
			/*
			*   Examples - images
			*/
			$("a#example2").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

		});
	</script>
</head>
<body>	
<div id="container1">
<div id="headertopmenu">
<?php
	if($name!='')	{
?>
<div id="loginheader">
  <table width="425" border="0" align="right" cellpadding="0" cellspacing="0">
    <tr>
      <td width="131">View Details</td>
      <td width="89">Edit Details</td>
      <td width="88"><?php if($name!=''){ ?><a href="signout.php" target="_parent" >Logout</a><?Php	}?></td>
      <td width="117">&nbsp;</td>
    </tr>
  </table>
</div>
<?Php
	}
		
?>
  <div class="toplinks"><a id="example2" href="contactus.php">Contact Us</a>	</div>
  
  <div class="toplinks"><a href="register.php" target="_parent">Register</a> ||</div>
<?php if($name==''){ ?>
<div class="toplinks"><a href="login_index.php" target="_parent" >Login </a>||</div>
<?Php	}?>  
  
  <div class="toplinks"> <a href="index.php" target="_parent">Home </a>||</div>
</div>

<div id="logocontainer">
  <div id="logo"></div>
  <div id="search">
  
    <table width="100%" border="0" cellspacing="1" cellpadding="1">
      <tr><form method="post" action="search_main.php" target="_parent">
        <td width="84%" height="56" align="left" valign="middle"><span class="readtext">Quick Search</span>
          <input name="textfield" type="text" size="32"  /></td>
        <td width="16%" align="left" valign="middle"><br />
<input  type="image" name="imageField" src="images/find.jpg" ALT="Submit Form" /></td>
      </form>  </tr>
    </table>
	
  </div>
</div>
<form method="post" action="search.php">

<div id="inner_header">
  <div id="innerheader_search">
      <div class="what"><span class="mesagebox">WHAT</span>
<div class="fieldbox"><span class="smallbox_wherecombo">
          <select class="captial12pxblack" name="cmbTypeofbusiness" id="cmbTypeofbusiness"  onchange="subbusinesscheck(this.value)"  style="height:30px; width:300px;" >
            <option value="">Type of Business</option>
            <?Php
	$arrMenu=Model_typeofbusiness::get_Typeofbusiness();
	foreach($arrMenu as $objMenu){ 
		//$cCode=$objMenu->getFixedcode(); 
		$Typeofbusiness=$objMenu->getTypeofbusiness(); 

		
?>
            <option value="<?Php echo $Typeofbusiness ?>" ><?Php echo $Typeofbusiness ?></option>
            <?php		
		

	}
							
?>
          </select>
        </span></div>
        <div class="fieldbox">
          <div class="fieldbox">
            <div id="branch">
              <select class="captial12pxblack" name="cmbBusinesssublist" id="cmbBusinesssublist"  style="height:30px; width:300px;">
                <option value="">Select your field</option>
              </select>
            </div>
          </div>
        </div>
      </div>
      <div class="where"><span class="mesagebox">WHERE</span>
        <div class="fieldbox">
          <select name="cmbcontState" class="captial12pxblack" id="cmbcontState" style="height:30px; width:300px;">
            <option value="Kerala">-------- Kerala --------</option>
          </select>
        </div>
        <div class="fieldbox">
          <div class="fieldbox">
            <select class="captial12pxblack" name="cmbDistrict"  id="cmbDistrict"  style="height:30px; width:300px;">
              <option value="">Select District</option>
              <?Php
	$arrMenu=Model_listeddistrict::get_Listeddistrictvalue();
	foreach($arrMenu as $objMenu){ 
		$district=$objMenu->getDistrict(); 
?>
              <option value="<?Php echo $district ?>" ><?Php echo $district ?></option>
<?php		

	}
?>
            </select>
          </div>
        </div>
      </div>
    </div>
    <div class="formbutton">
<input type="submit" name="button" id="button" style="height:30px; width:300px;" value="Submit" />
</div>
</div>
</form>
<hr />
</div>
</body>
</html>
